package com.three.pinmore.core;

import com.three.pinmore.Constans;

import retrofit2.Retrofit;
import retrofit2.converter.scalars.ScalarsConverterFactory;

/**
 * Created by YWT love meng on 2017/8/30
 */
public class ApiGenerator {

    static Retrofit mRetrofit = new Retrofit.Builder()
            .baseUrl(Constans.Base.BASE_URL)
            .addConverterFactory(ScalarsConverterFactory.create())
            .build();

    public static ApiServer getApiServer() {
        return mRetrofit.create(ApiServer.class);
    }
}
